package com.future.baselib.http;


import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.Url;

/**
 * 网络请求接口
 * Created by jniu on 2017/5/17.
 */

public interface HttpService {

    @POST
    @FormUrlEncoded
    Call<String> getData(@Url String url, @FieldMap Map<String,String> map);

    @POST
    Call<String> uploadFile(@Url String url, @Body RequestBody body);
}
